<?php if (isset($_SERVER['HTTP_USER_AGENT']) && !strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) echo '<?xml version="1.0" encoding="UTF-8"?>'. "\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" xml:lang="<?php echo $lang; ?>">
<head>
<title><?php echo $title; ?></title>
<?php if ($keywords) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php } ?>
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<base href="<?php echo $base; ?>" />


<?php if ($icon) { ?>
<link rel="shortcut icon" href="galib-icon.ico">
<?php } ?>
<?php foreach ($links as $link) { ?>
<?php } ?>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/<?php echo $template; ?>/stylesheet/stylesheet.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ie6.css" />
<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js"></script>
<script>
DD_belatedPNG.fix('img, #header .div3 a, #content .left, #content .right, .box .top');
</script>
<![endif]-->

<?php foreach ($styles as $style) { ?>
<link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
<?php } ?>
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/thickbox/thickbox-compressed.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/thickbox/thickbox.css" />



<?php foreach ($scripts as $script) { ?>
<script type="text/javascript" src="<?php echo $script; ?>"></script>
<?php } ?>

<script type="text/javascript"><!--
function bookmark(url, title) {
	if (window.sidebar) { // firefox
    window.sidebar.addPanel(title, url, "");
	} else if(window.opera && window.print) { // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} else if(document.all) {// ie
   		window.external.AddFavorite(url, title);
	}
}
//-->

</script>

<!-- Start - Adding Blueprint CSS Framework-->
<link rel="stylesheet" type="text/css" href="catalog/view/theme/<?php echo $template; ?>/stylesheet/blueprint/screen.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" type="text/css" href="catalog/view/theme/<?php echo $template; ?>/stylesheet/blueprint/print.css" type="text/css" media="print" />

<!--[if lt IE 8]><link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/stylesheet/blueprint/print.css" type="text/css" media="screen, projection"><![endif]-->

<!-- Import fancy-type plugin for the sample page. -->
<link rel="stylesheet" href="catalog/view/theme/<?php echo $template; ?>/stylesheet/blueprint/plugins/fancy-type/screen.css" type="text/css" media="screen, projection" />
<!-- End - Adding Blueprint CSS Framework-->
<link  href="http://fonts.googleapis.com/css?family=Terminal+Dosis+Light:regular" rel="stylesheet" type="text/css" >


</head>
<body>

	<!-- Start - Container-->
    <div class="container">
    	 <!-- Start - Header-->
	     <br/>
	     
	     <!-- End - Header-->
		

		<!-- Start - Right Side -->
       	 <div id="right" class="span-24 last">
       	 
       	 	<div id="site-logo" class="span-12">
       	 	<?php if ($logo) { ?>
		     <a href="<?php echo str_replace('&', '&amp;', $home); ?>"><img src="<?php echo $logo; ?>" title="<?php echo $store; ?>" alt="<?php echo $store; ?>" /></a>
		     <?php } ?>
			</div>

			<div id="login-panel" class="span-12 last">
				<div id="loginx">
				<?php if (!$logged) { ?>
			      <a href="<?php echo str_replace('&', '&amp;', $login); ?>" id="tab_login"><?php echo $text_login; ?></a> <br />
				  <a href="<?php echo str_replace('&', '&amp;', $register); ?>" id="tab_account"><?php echo $text_register; ?></a> <br />
				<?php } else { ?>
					
					Welcome: <?php echo $this->customer->getFirstName(); ?> -
			      <a href="<?php echo str_replace('&', '&amp;', $logout); ?>" id="tab_logout"><?php echo $text_logout; ?></a>  <br /> <a href="<?php echo str_replace('&', '&amp;', $account); ?>" id="tab_account"><?php echo $text_account; ?></a> <br />
			    <?php } ?><div id="module_cart" style="display:inline;"><div class="middle" style="display:inline;">
					<a href="<?php echo $view; ?>">
						<?php echo $text_cart; ?> (<?php echo $totalcount;?>)</a>
				</div></div>
				</div>
			</div> 

<div id="column_right" class="span-24 last">
  <?php foreach ($modules as $module) { ?>
  <?php echo ${$module['code']}; ?>
  <?php } ?>
</div>
         


       	 <!-- End - Right Side -->



      
      
      
      
      
  
